package com.cheng.student.service;

import com.cheng.student.beans.Teacher;
import com.cheng.student.dao.TeacherDao;
import com.cheng.student.service.interfaces.TeacherService;

import java.awt.*;

public class TeacherServiceImpl
    implements TeacherService
{

    @Override
    public void flushTeacher(Teacher teacher)
    {

    }

    @Override
    public void flushTeacher(Teacher teacher, Image image)
    {

    }

    @Override
    public Teacher loginTeacher(String payrollNumber, String password)
    {
        Teacher teacher = TeacherDao.selectTeacher(payrollNumber, password);
        return teacher;
    }

}
